package cn.miju.admin.system.vo;

import cn.miju.admin.framework.model.BaseInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <pre>
 * 授权菜单
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-04-04 14:22
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
public class AuthMenuInVO extends BaseInfo {
    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID", required = true)
    @NotNull(message = "传入角色ID不能为空")
    private Long roleId;
    /**
     * 授权菜单ID列表
     */
    @ApiModelProperty(value = "授权菜单ID列表", required = true)
    @NotNull(message = "传入授权菜单ID列表不能为空")
    private List<Long> menuIds;
}
